﻿using System.Text.RegularExpressions;

namespace System.Net.DnsToolkit.Util {
    public class CompressionConstant {

        internal static Regex RegexName = new Regex(@"\.", RegexOptions.Compiled);
        internal static Regex Subdomain = new Regex(@"\.$", RegexOptions.Compiled);

        public const int NameCompression = 0xC0;  // 11 00 00 00
        internal const int NameMaskLength = 0x3F;   // 00 11 11 11
        internal const int OpCodeMask = 0x78;       // 01 11 10 00
        internal const int ResponseCodeMask = 0x0F; // 00 00 11 11
        internal const int NameMaxLoop = 1000;

    }
}
